$(function(){
	showCondition(true);
	//参数
	var mdc = $("#tabContent > .tab-pane.active").data();
	paramTabPage[tabId] = mdc;
	if(typeof(paramTabPage[tabId].previous)=="undefined")
	{
		$('#'+tabId+' #hosp-title').append(mdc.title);
	}
	else
	{
		if(paramTabPage[tabId].previous=="mdc")
		{
			$('#'+tabId+' #hosp-title').append(mdc.mdcCode+"指标");
		}
		else if(paramTabPage[tabId].previous=="adrg")
		{
			$('#'+tabId+' #hosp-title').append(mdc.adrgCode+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="depGroup")
		{
			$('#'+tabId+' #hosp-title').append(mdc.depGroupName+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="dep")
		{
			$('#'+tabId+' #hosp-title').append(mdc.depName+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="ward")
		{
			$('#'+tabId+' #hosp-title').append(mdc.wardName+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="clinic")
		{
			$('#'+tabId+' #hosp-title').append(mdc.clinic_desc+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="protomedicus")
		{
			$('#'+tabId+' #hosp-title').append(mdc.protomedicus_desc+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="physician")
		{
			$('#'+tabId+' #hosp-title').append(mdc.physician_desc+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="resident")
		{
			$('#'+tabId+' #hosp-title').append(mdc.resident_desc+"指标");
		}
	}
	
	
	getQuotas("ywcDepLineMdc", loadData);
	
	function loadData(totalQuota){
		//科室组指标
		loadHospQuota(paramTabPage[tabId].monitorType,totalQuota,"hospQuotasId","ywcDepLineMdcTotal");
		
		//加载指标的div
		loadDRGsQuota(totalQuota,"MDC","quotasId");
		
		//科室线下MDC
		loadDRGsQuotaData(totalQuota,"mdc",true,null,"ywcDepLineMdcDetail");
	}
});


